package com.njitweb.service.impl;

import com.njitweb.mapper.CarouselMapper;
import com.njitweb.pojo.Carousel;
import com.njitweb.service.CarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarouselServiceImpl implements CarouselService {

    @Autowired
    private  CarouselMapper carouseMapper;


    @Override
    public void addCarousel(Carousel carousel) {
        carouseMapper.addCarousel(carousel);
    }

    @Override
    public List<Carousel> listCarousel() {
        return carouseMapper.listCarousel();
    }
}
